package com.ak.auth.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author Vean
 */
@Data
@TableName("sys_user_connection")
public class UserConnection {

    @TableId(value = "user_name")
    @NotBlank(message = "{required}")
    private String userName;

    @TableId(value = "provider_name")
    @NotBlank(message = "{required}")
    private String providerName;

    @TableId(value = "provider_user_id")
    @NotBlank(message = "{required}")
    private String providerUserId;

    @TableField(value = "provider_user_name")
    private String providerUserName;

    @TableField(value = "nick_name")
    private String nickName;

    @TableField("image_url")
    private String imageUrl;

    @TableField("location")
    private String location;

    @TableField("remark")
    private String remark;

}